viridian: use softirq batching in hvcall_ipi()
authorPaul Durrant <pdurrant@amazon.com>
Fri, 4 Dec 2020 12:14:42 +0000 (13:14 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 4 Dec 2020 12:14:42 +0000 (13:14 +0100)
commit3a3f4f00afcdcf2cdae47319168b8dadab41c4f4
treeb8f786e31a661f36cdb2953cf269cd67bc19d450
parent728acba1ba4ad6f9b69fd6929362a9750fe4dbe8
viridian: use softirq batching in hvcall_ipi()

vlapic_ipi() uses a softirq batching mechanism to improve the efficiency of
sending a IPIs to large number of processors. This patch modifies send_ipi()
(the worker function called by hvcall_ipi()) to also make use of the
mechanism when there multiple bits set the hypercall_vpmask.

Signed-off-by: Paul Durrant <pdurrant@amazon.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Wei Liu <wl@xen.org>
xen/arch/x86/hvm/viridian/viridian.c